<?php
/* * check table existence
IF (EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'TheSchema' AND  TABLE_NAME = 'TheTable'))
BEGIN      --Do Stuff    END  */
//if(isset($_COOKIE['sitegeistconfig2']))echo'true'; else echo'false';

$host='localhost';
$port=3307;
$db='sitegeist';
$dbu='root';
$dbp='usbw';
$dsn="mysql:host=$host;port=$port;dbname=$db";

$db=new PDO($dsn,$dbu,$dbp,array( PDO::MYSQL_ATTR_INIT_COMMAND=>"SET NAMES utf8" ));
$db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
//$db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY:: ?? );
?>
